home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / mweb / MWEB Utils / ws295sdk.exe / Ws2sdkzp.exe / SAMPLES / LAYERED / DBUFFMGR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-06  |  1.8 KB  |  78 lines

  1. /*++
  2.  
  3.  
  4.      Copyright c 1996 Intel Corporation
  5.      All Rights Reserved
  6.  
  7.      Permission is granted to use, copy and distribute this software and
  8.      its documentation for any purpose and without fee, provided, that
  9.      the above copyright notice and this statement appear in all copies.
  10.      Intel makes no representations about the suitability of this
  11.      software for any purpose.  This software is provided "AS IS."
  12.  
  13.      Intel specifically disclaims all warranties, express or implied,
  14.      and all liability, including consequential and other indirect
  15.      damages, for the use of this software, including liability for
  16.      infringement of any proprietary rights, and including the
  17.      warranties of merchantability and fitness for a particular purpose.
  18.      Intel does not assume any responsibility for any errors which may
  19.      appear in this software nor any responsibility to update it.
  20.  
  21.  
  22. Module Name:
  23.  
  24. dbuffmgr.h
  25.  
  26. Abstract:
  27.  
  28.  
  29. --*/
  30.  
  31. #ifndef _DBUFFERMANAGER_
  32. #define _DBUFFERMANAGER_
  33.  
  34. #include <winsock2.h>
  35.  
  36. class DBUFFERMANAGER
  37. {
  38.   public:
  39.  
  40.     DBUFFERMANAGER();
  41.  
  42.     ~DBUFFERMANAGER();
  43.  
  44.     INT
  45.     Initialize(
  46.         );
  47.  
  48.     INT
  49.     AllocBuffer(
  50.         IN  LPWSABUF   UserBuffer,
  51.         IN  DWORD      UserBufferCount,
  52.         OUT LPWSABUF*  InternalBuffer,
  53.         OUT DWORD*     InternalBufferCount
  54.         );
  55.  
  56.     VOID
  57.     FreeBuffer(
  58.         IN LPWSABUF  InternalBuffer,
  59.         IN DWORD     InternalBufferCount
  60.         );
  61.  
  62.     INT
  63.     CopyBuffer(
  64.         IN  LPWSABUF   SourceBuffer,
  65.         IN  DWORD      SourceBufferCount,
  66.         IN  DWORD       SourceOffset,
  67.         IN    DWORD       BytesToCopy,
  68.         IN  LPWSABUF   DestinationBuffer,
  69.         IN  DWORD      DestinationBufferCount,
  70.         IN  DWORD       DestionationOffset
  71.         );
  72.  
  73.   private:
  74.  
  75. };   // class DBUFFERMANAGER
  76.  
  77. #endif // _DBUFFERMANAGER_
  78.